-- GENERATED SPELL FOR [Scalebane Captain] --


function spell0_745(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(9128,pUnit)
pUnit:RegisterEvent('Sorts_745', 588, 1)
end

function spell1_745(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_745', 30313, 1)
end

function spell2_745(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(12555,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_745', 5304, 1)
end

function Sorts_745(pUnit, Event)
local choix_sorts_745 = math.random(0, 2)
if choix_sorts_745 == 0 then
pUnit:RegisterEvent('spell0_745', 1, 1)
end
if choix_sorts_745 == 1 then
pUnit:RegisterEvent('spell1_745', 1, 1)
end
if choix_sorts_745 == 2 then
pUnit:RegisterEvent('spell2_745', 1, 1)
end
end

function mob745_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_745', math.random(1500, 3000), 1)
end

function mob745_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob745_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob745_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(745, 1, 'mob745_Action')
RegisterUnitEvent(745, 2, 'mob745_Leave')
RegisterUnitEvent(745, 3, 'mob745_Kill')
RegisterUnitEvent(745, 4, 'mob745_Die')
